<template>
  <div>
    <div class="enterBox">
      <a @click="enterList('Student')">在校生缴费入口</a>
      <a @click="enterList('Sign')">新生缴费入口</a>
    <!-- <router-link :to="{name:'payOperation',params:{stus:'Student'}}">在校生缴费入口</router-link>
    <router-link :to="{name:'payOperation',params:{stus:'Sign'}}">新生缴费入口</router-link> -->
    <router-link :to="{name:'payQuery'}">缴费查询/下载电子收据</router-link>
    </div>
    <div class="banner" ref="maxHeight">
      <!-- <el-carousel indicator-position="none" :interval="10000" arrow="never" :height="boxHeight">
        <el-carousel-item v-for="item in 4" :key="item">
          <h3>{{ item }}</h3>
        </el-carousel-item>
      </el-carousel> -->
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ccc:'入口页面',
      boxHeight:'',
    }
  },
  mounted() {
    this.$nextTick(()=>{
      this.setBoxHeight();
      this.setLogin();
    })
  },
  methods: {
    setBoxHeight:function(){
      var h = this.$refs.maxHeight.offsetHeight
      console.log(h);
      this.boxHeight = h+'px';
    },
    setLogin(){
      this.$store.commit('SetHaveLogin',true);
      this.$store.commit('SetCanBack',true);
    },
    // 进入列表选项
    enterList:function(mes){
      console.log(mes);
      this.$store.commit('SetStudentFrom',mes);
      this.$router.push({name:'payOperation'});
    }
  }
}
</script>

<style>
.el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>
